package com.zys.el.time.constants;

public class RedisConstants {
    ////// 话题聊天 //////
    public final static String ROOM_KEY = "room:";
    public final static String TO_USER_KEY = "toUser:";


    ////// 默认过期时间 //////
    public final static Long COMMON_TTL = 24 * 60L;
    public final static Long NULL_TTL = 30L;

    ////// 用户 //////
    public final static String USER_KEY = "user:";
    public final static String USER_LOCK_KEY = "lock:user:";
    public final static Long USER_TTL = 30 * 24 * 60L;

    public final static String CHANNEL_KEY = "channel:";

    ////// 通知 //////
    public final static String ADVICE_KEY = "advice:";
    public final static Long ADVICE_TTL_KEY = 30 * 24 * 60L;

    ////// 分页 //////
    public final static Long PAGE_TTL_KEY = 30 * 24 * 60L;
    public final static String PAGE_THINKING_KEY = "page:thinking:";
    public final static String PAGE_COMMENT_KEY = "page:comment:";
    public final static String PAGE_REPLIED_KEY = "page:replied:";
    public final static String PAGE_USER_INBOX_COMMENT_KEY = "page:user_inbox:comment:";

    ////// 锁 //////
    public final static String THINKING_LOCK_KEY = "lock:thinking:";
    public final static String COMMENT_LOCK_KEY = "lock:comment:";

    ////// 帖子 //////
    public final static String THINKING_KEY = "thinking:";
    public final static Long THINKING_TTL = 24 * 60L;
    public final static Long THINKING_NULL_TTL = 5L;

    ////// 评论 //////
    public final static String COMMENT_KEY = "comment:";
    public final static Long COMMENT_TTL = 24 * 60L;

    ////// 点赞数量 //////
    public static final String THINK_LIKE_COUNT = "like_count:think:";
}
